<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title></title>
		<style></style>
	</head>
	<body>
		<div id="d1">
			<form>
				<img id="img" src="img/list/1.jpg" />
				<br />
				<input type="button" id="button" value="切换" onclick="Cllick()" />
			</form>
		</div>
	</body>
	<script type="text/javascript">
	var a=2;
		function Cllick(){
				if(a<10){
					var imgobj = document.getElementById('img');
						imgobj.src = "./img/list/"+a+".jpg"
				}
				a++;
			
			}
	</script>
</html>
